<?php

namespace Usuarios\Form;

use Zend\Form\Form;

class SearchForm extends Form {

   public function __construct($name = null) {

      //we want to ignore the name passed
      parent::__construct('Busqueda de Usuarios');
      $this->setAttribute('method', 'post');
      $this->add(array(
         'name' => 'nombre',
         'attributes' => array(
            'type' => 'text',
         ),
         'options' => array(
            'label' => 'Nombre : ',
         ),
      ));
      $this->add(array(
         'name' => 'apellido',
         'attributes' => array(
            'type' => 'text',
         ),
         'options' => array(
            'label' => 'Apellido : ',
         ),
      ));
      $this->add(array(
         'name' => 'submit',
         'attributes' => array(
            'type' => 'submit',
            'value' => 'Go',
            'id' => 'submitbutton',
         ),
      ));
   }
}
